/**
 * @param {Array} actual
 * @returns {Array}
 */
export function cleanArray<T>(actual: T[]): T[] {
  const newArray: T[] = []
  for (let i = 0; i < actual.length; i++) {
    if (actual[i]) {
      newArray.push(actual[i])
    }
  }
  return newArray
} 